package com.gupao.proxydemo.orderdemo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class OrderService implements IOrderService {
    //
//    @Autowired
    OrderDao orderDao;

//    public OrderService(){
//        this.orderDao = new OrderDao();
//    }

    @Override
    public int createOrder(Order order) {
        log.info("do something in orderservice");
        return orderDao.insertOrder(order);
    }
}
